package com.tj.template.application.user.output;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: binary
 * Date: 2020/6/10
 * Time: 下午2:38
 */
public class AppConfigApOutput implements Serializable {

    private UpgradeItem upgrade;

    public AppConfigApOutput(String updateDesc, Integer updateDescLayout, Integer updateMode, String version) {
        this.upgrade = new UpgradeItem();
        this.upgrade.setUpdateDesc(updateDesc);
        this.upgrade.setUpdateDescLayout(updateDescLayout);
        this.upgrade.setUpdateMode(updateMode);
        this.upgrade.setVersion(version);
    }

    public UpgradeItem getUpgrade() {
        return upgrade;
    }

    public AppConfigApOutput setUpgrade(UpgradeItem upgrade) {
        this.upgrade = upgrade;
        return this;
    }

    private static class UpgradeItem {
        private String updateDesc;
        private int updateDescLayout;
        private int updateMode;
        private String version;

        public String getVersion() {
            return version;
        }

        public UpgradeItem setVersion(String version) {
            this.version = version;
            return this;
        }

        public String getUpdateDesc() {
            return updateDesc;
        }

        public UpgradeItem setUpdateDesc(String updateDesc) {
            this.updateDesc = updateDesc;
            return this;
        }

        public int getUpdateDescLayout() {
            return updateDescLayout;
        }

        public UpgradeItem setUpdateDescLayout(int updateDescLayout) {
            this.updateDescLayout = updateDescLayout;
            return this;
        }

        public int getUpdateMode() {
            return updateMode;
        }

        public UpgradeItem setUpdateMode(int updateMode) {
            this.updateMode = updateMode;
            return this;
        }
    }

}
